package com.sac.approval.domain;

import com.sac.approval.enums.ApprovalLineStatusEnum;
import com.sac.approval.enums.ApprovalRoleEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;



/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-09-18 14:37:45
 */
@Data
public class ApprovalLineDO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//主键
	private Long appLineId;
	//主表id
	private String appId;
	//序号
	private Integer seq;
	//收件人邮箱地址
	private String receiverMail;
	//收件人id
	private String receiverEpid;
	//审批代理人id
	private String agentUserId;
	//收件人job
	private String receiverJob;
	//收件人部门
	private String receiverDeptNm;
	//邮件发送状态
	private String mailDeliveryStatus;
	//处理类型
	private Integer handleType;
	//状态
	private Integer status;
	//收件时间
	private Date receiptTime;
	//预览时间
	private Date preReadTime;
	//阅读时间
	private Date readTime;
	//处理时间
	private Date handleTime;
	//备注
	private String remark;

	private String arbPmtYn;//特批权限

	private String txtMdfyPmtYn;//正文修改权限

	private String pathMdfyPmtYn;//路径修改权限

	private String receiverName;

    private String handleTypeName;

    private String statusName;

	private String category;

	private String isDelete;

	private String changeLineYn;

	private String changeTextYn;

    public String getHandleTypeName() {
        return ApprovalRoleEnum.getRoleEnumByValue(this.handleType).getName();
    }

    public String getStatusName() {
        return ApprovalLineStatusEnum.getLineStatusEnumByValue(this.status).getName();
    }

    private DelegateMappingDO agent;
}
